#ifndef GRAPHICSMAP_H
#define GRAPHICSMAP_H

#include <QGraphicsScene>
#include <QObject>

#include "gui/graphicscity.h"
#include "map.h"
#include "genetic/path.h"

class GraphicsMapScene : public QGraphicsScene
{
    Q_OBJECT
public:
    GraphicsMapScene();
    void setMap(Map* m);
    void onSizeChanged();
    GraphicsCity* getGCity(City* city);
    void showPath(Path p);  // 显示一条路径
private:
    Map* map;

};

#endif // GRAPHICSMAP_H
